package com.zs.admin.validate.schoolbook;

import com.zs.common.validator.annotation.IDMust;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 校本书籍参数
 * @author SwAdmin
 */
@Data
@ApiModel("校本书籍更新参数")
public class SchoolBookUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "主键id")
    private Integer id;

    //@NotNull(message = "wisdId参数缺失")
    @ApiModelProperty(value = "智书id")
    private Integer wisdId;

    @ApiModelProperty(value = "校本父id")
    private Integer pid;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "书名")
    private String name;

    @ApiModelProperty(value = "年级")
    private Integer grade;

    @ApiModelProperty(value = "科目")
    private Integer subject;

    @ApiModelProperty(value = "学段")
    private Integer section;

    @ApiModelProperty(value = "教材版本")
    private Integer edition;

    @ApiModelProperty(value = "分册：0默认 1上册 2下册 3全一册")
    private Integer volume;

    @ApiModelProperty(value = "封面图地址")
    private String cover;

    @ApiModelProperty(value = "isbn")
    private String isbn;

    @ApiModelProperty(value = "制作状态： 0未开始 1制作中  2已发布")
    private Integer status;

    @ApiModelProperty(value = "类型： 0母版 1副本")
    private Integer type;

    @ApiModelProperty(value = "pdf存放地址")
    private String pdfUrl;

    @ApiModelProperty(value = "word存放地址")
    private String wordUrl;

}
